<template>
  <a-config-provider :locale="locale">
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>

<script>
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
import { mapState } from 'vuex'
export default {
  data () {
    return {
      locale: zhCN
    }
  },
  computed: {
    ...mapState({
      userInfo: state => state.user.userInfo,
      permissionKeys: state => state.permission.permissionKeys
    })
  }
}
</script>
